package pl.kosmowska.ewelina.client.app.activity.places;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;
import com.google.web.bindery.requestfactory.shared.EntityProxyId;
import com.google.web.bindery.requestfactory.shared.RequestFactory;

public class LoanPlace extends Place  {

	
	  @Prefix("Kredyty")
	  public static class Tokenizer implements PlaceTokenizer<LoanPlace> {

	    private RequestFactory requestFactory;

	    public Tokenizer(RequestFactory requestFactory) {
	      this.requestFactory = requestFactory;
	    }
	    
	    /**
	     * from - in app activated
	     */
	    @Override 
	    public String getToken(LoanPlace place) {
	      String token = place.getToken();
	      return "";
	    }

	    /**
	     * from - url activated
	     */
	    @Override
	    public LoanPlace getPlace(String token) {
	      return new LoanPlace();
	    }

	  }
	  
	  

	  private String token;

	  public LoanPlace() {
	    //this.token = token;
	  }

	  public String getToken() {
	    return token;
	  }

}
